<?php

namespace App\Models\Sys;

use App\Models\Goods\Goods;
use App\Models\User\User;
use Illuminate\Database\Eloquent\Model;

class Express extends Model
{

    protected $table = 'jxt_sys_express';

    const CREATED_AT = 'create_at';
    const UPDATED_AT = null;

    public function fromDateTime($value){
        return strtotime(parent::fromDateTime($value));
    }

    public function getCreateAtAttribute()
    {
        return date('Y-m-d H:i:s', $this->attributes['create_at']);
    }

}
